#!/usr/bin/python
# -*- coding: UTF-8 -*-  

"ModuleName"

__author__ = "Wang Zhe"

from datetime import datetime


def main():
    now = datetime.now()
    print(now)
    print(type(now))

    dt = datetime(2017,7,16,19,12,52,896526)
    print(dt)

    print(dt.timestamp())

    print(datetime.fromtimestamp(1500203572.896526))
    print(datetime.utcfromtimestamp(1500203572.896526))

    cday = datetime.strptime('2017-7-16 19:27:00','%Y-%m-%d %H:%M:%S')
    print(cday)

    now = datetime.now()
    print(now.strftime('%a,%b %d %H:%M'))

if __name__ == '__main__':
    main()